<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>后台管理</title>
		<link rel="stylesheet" href="resources/css/reset.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="resources/css/style.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="resources/css/invalid.css"
			type="text/css" media="screen" />
		<script type="text/javascript"
			src="resources/scripts/jquery-1.3.2.min.js">
</script>
		<script type="text/javascript"
			src="resources/scripts/simpla.jquery.configuration.js">
</script>
		<script type="text/javascript" src="resources/scripts/facebox.js">
</script>
		<script type="text/javascript"
			src="resources/scripts/jquery.wysiwyg.js">
</script>
		<script type="text/javascript"
			src="resources/scripts/jquery.datePicker.js">
</script>
		<script type="text/javascript" src="resources/scripts/jquery.date.js">
</script>

		<script language="javascript">
$(document).ready(function() {
	//alert('start!');
		//alert($("#main-nav").children().text());
		$("#dosubmit").click(function() {
			alert('start!');
			this.addClass('current');
		});
	});
</script>
	</head>
	<body>
		<div id="body-wrapper">
			<!-- Wrapper for the radial gradient background -->
			<div id="sidebar">
				<div id="sidebar-wrapper">
					<!-- Sidebar with logo and menu -->
					<h1 id="sidebar-title">
						<a href="#">Simpla Admin</a>
					</h1>
					<!-- Logo (221px wide) -->
					<img id="logo" src="resources/images/logo.png"
						alt="Simpla Admin logo" />
					<!-- Sidebar Profile links -->
					<div id="profile-links">
						你好,
						<a href="#" title="Edit your profile">${sessionScope.user.username}</a>
						<br />
						<br />
						<a href="#" title="View the Site">管理首页</a> |
						<a href="#" title="Sign Out">退出</a>
					</div>
					<ul id="main-nav">
						<!-- Accordion Menu -->
						<li>
							<a href="index.html" class="nav-top-item no-submenu current">
								<!-- Add the class "no-submenu" to menu items with no sub menu -->
								系统配置 </a>
						</li>
						<li>
							<a href="#" class="nav-top-item"> <!-- Add the class "current" to current menu item -->
								教工信息管理 </a>
							<ul>
								<li>
									<a href="admin_teacher_manager.jsp">教工信息管理</a>
								</li>
								<li>
									<a href="admin_teacher_add.jsp">增加教工信息</a>
								</li>
								<!-- Add class "current" to sub menu items also -->
								<li>
									<a href="admin_teacher_batch.jsp">批量导入</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#" class="nav-top-item"> 学生信息管理 </a>
							<ul>
								<li>
									<a href="admin_student_manager.js">学生信息管理</a>
								</li>
								<li>
									<a href="admin_student_add.jsp">增加学生信息</a>
								</li>
								<!-- Add class "current" to sub menu items also -->
								<li>
									<a href="admin_student_batch.jsp">批量导入</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#" class="nav-top-item"> 题目信息管理 </a>
							<ul>
								<li>
									<a href="admin_topic_manager.jsp">题目信息管理</a>
								</li>
								<!-- Add class "current" to sub menu items also -->
								<li>
									<a href="admin_topic_batch.jsp">批量导入</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#" class="nav-top-item"> 选题信息管理 </a>
							<ul>
								<li>
									<a href="admin_select_manager.jsp">选题信息管理</a>
								</li>
								<li>
									<a href="admin_select_batch.jsp">批量导出</a>
								</li>
							</ul>
						</li>

					</ul>
					<!-- End #main-nav -->
					<div id="messages" style="display: none">
						<!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
						<h3>
							3 Messages
						</h3>
						<p>
							<strong>17th May 2009</strong> by Admin
							<br />
							Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
							magna. Cras in mi at felis aliquet congue.
							<small><a href="#" class="remove-link"
								title="Remove message">Remove</a>
							</small>
						</p>
						<p>
							<strong>2nd May 2009</strong> by Jane Doe
							<br />
							Ut a est eget ligula molestie gravida. Curabitur massa. Donec
							eleifend, libero at sagittis mollis, tellus est malesuada tellus,
							at luctus turpis elit sit amet quam. Vivamus pretium ornare est.
							<small><a href="#" class="remove-link"
								title="Remove message">Remove</a>
							</small>
						</p>
						<p>
							<strong>25th April 2009</strong> by Admin
							<br />
							Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
							magna. Cras in mi at felis aliquet congue.
							<small><a href="#" class="remove-link"
								title="Remove message">Remove</a>
							</small>
						</p>
						<form action="#" method="post">
							<h4>
								New Message
							</h4>
							<fieldset>
								<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
							</fieldset>
							<fieldset>
								<select name="dropdown" class="small-input">
									<option value="option1">
										Send to...
									</option>
									<option value="option2">
										Everyone
									</option>
									<option value="option3">
										Admin
									</option>
									<option value="option4">
										Jane Doe
									</option>
								</select>
								<input class="button" type="submit" value="Send" />
							</fieldset>
						</form>
					</div>
					<!-- End #messages -->
				</div>
			</div>
			<!-- End #sidebar -->
			<div id="main-content">
				
				<noscript>
					
					<div class="notification error png_bg">
						<div>
							Javascript is disabled or is not supported by your browser.
							Please
							<a href="http://browsehappy.com/"
								title="Upgrade to a better browser">upgrade</a> your browser or
							<a
								href="http://www.google.com/support/bin/answer.py?answer=23852"
								title="Enable Javascript in your browser">enable</a> Javascript
							to navigate the interface properly. Download From
							<a href="http://www.exet.tk">exet.tk</a>
						</div>
					</div>
				</noscript>
				
				<h2>
					欢迎 ${sessionScope.user.username}
				</h2>

				<div class="clear"></div>

				<div class="content-box">

					<div class="content-box-header">
						<h3>
							系统配置
						</h3>

						<div class="clear"></div>
					</div>
					
					<div class="content-box-content">
						<div class="tab-content default-tab" id="tab1">
							
							<div class="notification attention png_bg">
								<a href="#" class="close"><img
										src="resources/images/icons/cross_grey_small.png"
										title="Close this notification" alt="close" />
								</a>
								<div>
									This is a Content Box. You can put whatever you want in it. By
									the way, you can close this notification with the top-right
									cross.
								</div>
							</div>
							<form action="admin_setting.action" method="post">
								<fieldset>
									<input type="hidden" name="id" value="${requestScope.setting.id}" />
									<p>
										<label>
											系统名称：
										</label>
										<input class="text-input small-input" type="text" id="sysname"
											name="sysname" value="${requestScope.setting.sysname}" />
										<span class="input-notification success png_bg">Successful
											message</span>
									</p>
									<p>
										<label>
											系统邮箱：
										</label>
										<input class="text-input small-input" type="text" id="email"
											name="email" value="${requestScope.setting.email}" />
										<span class="input-notification error png_bg">Error
											message</span>
									</p>
									<p>
										<label>
											邮箱密码：
										</label>
										<input class="text-input small-input" type="text"
											id="emailPassword" name="emailPassword" value="${requestScope.setting.emailPassword}" />
									</p>
<p>
										<label>
											SMTP服务器：
										</label>
										<input class="text-input small-input" type="text"
											id="smtp" name="smtp" value="${requestScope.setting.smtp}" />
									</p>
									<p>
										<label>
											系统状态
										</label>
										<input type="radio" name="status" value="2" <s:if test="#requestScope.setting.status==2">checked</s:if> /> <s:text name="#setting.status"></s:text>
										开启
										<br />
										<input type="radio" name="status" value="1" <s:if test="#requestScope.setting.status==1">checked</s:if>/>
										关闭
									</p>


									<p>
										<input class="button" type="submit" value="保存" id="dosubmit" />
									</p>
								</fieldset>
								<div class="clear"></div>
								
							</form>

						</div>

						<!-- End #tab2 -->
					</div>
					
				</div>

				<div id="footer">
					<small> 
						&#169; Copyright 2011 黄淮学院 | 信息工程学校 | <a href="#">Top</a> </small>
				</div>
				
			</div>
			<!-- End #main-content -->
		</div>
	</body>
	
</html>
